package com.parenting.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.parenting.entities.CommodityDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.parenting.request.SearchCommodityRequest;
import com.parenting.response.CommodityListResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品信息表 Mapper 接口
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-08-27
 */
public interface CommodityMapper extends BaseMapper<CommodityDO> {


    void deleteCommodity(@Param("list") List<String> ids);


    IPage<CommodityListResponse> getCommodityListByCondition(@Param("page") IPage<CommodityListResponse> page,@Param("request") SearchCommodityRequest request);

}
